package de.homelabs.hlmodules.cms.enums;

/**
 * defines error codes
 * 
 * @author D.Mueller
 * 
 */
public enum HLErrorCode {

	// definitions
	UNDERLAYING_EXCEPTION(0, "HLE000", "An underlaying Exception occured."), 
	MISSING_REGISTERED_CLASSES(1, "HLE001", "No registered classes found!"), 
	UNSUPPORTED_CLASS(2,"HLE002", "Unsupported Class Object"), 
	TEMPLATE_NOT_FOUND(3,"HLE003", "Template not found!"), 
	TEMPLATE_DETAIL_ERROR(4, "HL004","Template details error!");

	// vars
	private int id;
	private String code;
	private String text;

	/**
	 * constructor
	 * 
	 * @param id
	 * @param code
	 * @param text
	 */
	private HLErrorCode(int id, String code, String text) {
		this.id = id;
		this.code = code;
		this.text = text;
	}

	/*******************
	 * getter / setter *
	 *******************/
	public String getCode() {
		return code;
	}

	public int getId() {
		return id;
	}

	public String getText() {
		return text;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void setText(String text) {
		this.text = text;
	}
}
